package com.dhl.fin.api.domain;

import com.dhl.fin.api.common.domain.BasicDomain;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * Created by CuiJianbo on 2020.03.28.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "t_data_per")
public class DataPer extends BasicDomain {
    @Column(columnDefinition = "varchar(50)")
    private String name;

    @Column(columnDefinition = "varchar(50)")
    private String code;

    @OneToOne
    @JoinColumn(name = "tree_id")
    private Tree tree;

}


